home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer (Italian) 35
/
PC Gamer IT CD 35 2-2.iso
/
STARDEMO
/
Starsiege_ATR2.exe
/
Starsiege
/
Missions.vol
/
DM_Cold_Titan_Night.cs
< prev
next >
Wrap
Text File
|
1998-07-30
|
1KB
|
45 lines
////////////////////////////////////////
//Script for Titan1_DM AKA "A night'n Titan"
/////////////////////////////////////////
function setDefaultMissionOptions()
{
$server::TeamPlay = False; // for DM_ games
}
//If someone shoots frosty, his houses blow up revealing a nasty surprise
//------------------------------------------------
function tur1::turret::onAdd(%this)
{
$turret1=%this;
order($turret1,ShutDown,true);
}
function tur2::turret::onAdd(%this)
{
$turret2=%this;
order($turret2,ShutDown,true);
}
function Frosty::structure::onAttacked(%attacked,%attacker)
{
%bang1=getObjectId("MissionGroup\\extra\\frosty's house\\house1");
healObject(%bang1,-30000);
order($turret1,ShutDown,false);
%bang2=getObjectId("MissionGroup\\extra\\frosty's house\\house2");
order($turret1,ShutDown,false);
healObject(%bang2,-30000);
order($turret1,ShutDown,false);
chat(%attacker,0,strcat("Don't Shoot Frosty!!"));
if($server::TeamPlay)
{
if(getTeam($turret1)==getTeam(%attacker))
{
setTeam($turret1,1);
setTeam($turret2,2);
}
}
}